<template>
	<view>
		<dsl-navbar title="邀请明细" bgTopImg="white" isBack></dsl-navbar>
		<view class="padding-lr rowsa bg-white">
			<view v-for="(item,index) in titleList" :key='item.id' @click="num = index">
				<view>
					<view :class="['title',{active_title:index == num}]">{{item.title}}</view>
					<view :class="['title_bottom',{'active_title_bottom':index ==num}]"></view>
				</view>
			</view>
		</view>
		<view v-if="num ==0">
			<view class="rowsb padding" style="color: #9AA2B5;">
				<view>本月</view>
				<view class="align-center">
					<text class="margin-right-sm">2020-22-22</text>
					<image src="/static/icon/imgrili.png" mode="widthFix" style="width: 40rpx;"></image>
				</view>
			</view>
			<view class="align-center padding bg-white  rowsb solid-bottom" v-for="(item,index) in 3">
				<view>奖励明细</view>
				<view class="active_title">+20</view>
			</view>
		</view>
		<view v-if="num==1">
			<view style="color: #9AA2B5;" class="padding">
				邀请总人数：3人
			</view>
			<view class="align-center bg-white padding solid-bottom " v-for="(item,index) in 3">
				<image src="" mode="" class="user_image"></image>
				<view class="margin-left">
					我的名称
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				titleList: [{
						title: '奖励明细',
						id: '21312321312'
					},
					{
						title: '我邀请的人',
						id: 'wjdwqww222'
					}
				],
				num: 0
			}
		},
		//生命周期函数
		onReady() {},
		onLoad() {},
		onShow() {},
		methods: {},
		computed: {},
		components: {}
	}
</script>

<style>
	.title {
		color: #515151;
	}

	.title_bottom {
		/* background-color: #515151; */
		height: 4rpx;
		margin-top: 20rpx;
	}

	.active_title {
		color: #EAA019 !important;
	}

	.active_title_bottom {
		background-color: #EAA019 !important;
		margin-top: 20rpx;
	}

	page {
		background-color: #F7F6FA;
	}

	.user_image {
		width: 88rpx;
		height: 88rpx;
		background: #FF8F2E;
		border-radius: 50%;
	}
</style>
